<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{{=T.accepted_language or 'br'}}">
<head>
    <title>{{=response.title or request.application}}</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
{{response.files.append(URL(r=request,c='static',f='jquery.dataTables.min.js'))}}
{{response.files.append(URL(r=request,c='static',f='demo_table.css'))}}
{{extend 'layout.html'}}
</head>
<script>
$(document).ready(function() { 
  jQuery('.smarttable').dataTable(); 
});
</script>
        <div id="form">
        <h2>Aplica Prova</h2>
        {{=aplicar_prova}}
        </div>
<table class="smarttable">
<thead>
<tr>
<th>Prova</th><th>Turma</th><th>Plano de Prova</th><th>Tipo</th><th>Data Aplicacao</th>
</tr>    
</thead>
<tbody>
{{if row_prova:}}
    {{for prova in row_prova:}}
      <tr>
      <td>{{=prova.prova.referencia}}</td>
      <td>{{=prova.prova.turma.nome}}</td>
      <td>{{=prova.plano_de_prova.referencia}}</td>
      <td>{{=prova.prova.tipo}}</td>
      <td>{{=prova.prova.data_aplicacao}}</td>
      </tr>
    {{pass}}
{{pass}}    
</tbody>
<tr><td>{{=button('Atualizar','aplicar_prova')}}</td></tr>
</table>
